import React, {Component} from 'react';
import './formComponent.css'
import hocDrag from "./hoc/hocDrag";
import {withRouter} from 'react-router-dom';

class FormComponent extends Component {
  render() {
    return (
      <div className='drag'>
        <input type="text" placeholder={'用户名'}/>
        <input type="text" placeholder={'密码'}/>
        <br/>
        <button>登录</button>
      </div>
    );
  }
}

//高阶组件可以嵌套高阶组件使用
export default withRouter(hocDrag(FormComponent));
